<template>
  <div class="wenzhang">
      <div class="xcenter" v-for="(item,index) in photos">
        <div class="xphoto">
          <img :src="item.img1">
        </div>
        <div class="xdongtian">
          <p>{{item.txt}}</p>
        </div>
        <div class="xhrtop">
          <div class="xhrrd">
            <p>{{item.time}}</p>
            <p class="xfree">|</p>
            <p>{{item.txt1}}</p>
          </div>
        </div>
      </div>
  </div>
</template>

<script type="text/ecmascript-6">
    export default {
      props:["photos"]
    }
</script>

<style lang="scss">
  .xhongren{
    width: 100%;
    flex: 1;
  }
  .xcenter{
    background: white;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 0.2rem;
  }
  .xhrl{
    width: 0.45rem;
    height: 0.45rem;
    img{
      width: 100%;
      height: 100%;
    }
  }
  .xhrtop{
    display: flex;
    padding: 0.15rem;
  }
  .xhrrd{
    margin-left: 0.15rem;
    display: flex;
    p:first-child{
      font-size: 18px;
    }
    p:last-child{
      font-size: 14px;
      //color: #6e6e6e;
    }
  }
  .xhrrd p{
    margin-right: 0.2rem;
    color: #6e6e6e;
  }
  .xhrrd .xfree{
    font-size: 16px;
  }
  .xphoto{
    width: 100%;
    height: 2.7rem;
  }
  .xphoto img{
    width: 100%;
    height: 100%;
  }
  .xbottom{
    width: 100%;
    padding: 0.1rem 0 0.15rem 0;
  }
  .xbottom p{
    width: 3.45rem;
    color: #4e4e4e;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    margin:0 auto;
  }

  .xdongtian{
    color: #333333;
    font-size: 17px;
    font-weight: 600;
    margin-top: 0.1rem;
    p{
      width: 3.45rem;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      margin:0 auto;
    }
  }
</style>
